package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MgWordSizeConfMapper;
import com.ruoyi.system.domain.MgWordSizeConf;
import com.ruoyi.system.service.IMgWordSizeConfService;
import com.basic.service.impl.BaseServiceImpl;

/**
 * 字数区间配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-18
 */
@Service
public class MgWordSizeConfServiceImpl extends BaseServiceImpl<Long, MgWordSizeConf> implements IMgWordSizeConfService 
{
    public MgWordSizeConfServiceImpl(MgWordSizeConfMapper baseMapper) {
		super(baseMapper);
		// TODO Auto-generated constructor stub
	}
    /**
     * 查询字数区间配置
     * 
     * @param id 字数区间配置主键
     * @return 字数区间配置
     */
    @Override
    public MgWordSizeConf selectById(Integer id)
    {
        return baseMapper.selectById(id);
    }

    /**
     * 查询字数区间配置列表
     * 
     * @param mgWordSizeConf 字数区间配置
     * @return 字数区间配置
     */
    @Override
    public List<MgWordSizeConf> selectList(MgWordSizeConf mgWordSizeConf)
    {
        return baseMapper.selectList(mgWordSizeConf);
    }

    /**
     * 新增字数区间配置
     * 
     * @param mgWordSizeConf 字数区间配置
     * @return 结果
     */
    @Override
    public int insert(MgWordSizeConf mgWordSizeConf)
    {
    	insertProperties(mgWordSizeConf);
        return baseMapper.insert(mgWordSizeConf);
    }

    /**
     * 修改字数区间配置
     * 
     * @param mgWordSizeConf 字数区间配置
     * @return 结果
     */
    @Override
    public int update(MgWordSizeConf mgWordSizeConf)
    {
    	updateProperties(mgWordSizeConf);
        return baseMapper.update(mgWordSizeConf);
    }

    /**
     * 批量删除字数区间配置
     * 
     * @param ids 需要删除的字数区间配置主键
     * @return 结果
     */
    @Override
    public int deleteByIds(Integer[] ids)
    {
        return baseMapper.deleteByIds(ids);
    }

    /**
     * 删除字数区间配置信息
     * 
     * @param id 字数区间配置主键
     * @return 结果
     */
    @Override
    public int deleteById(Integer id)
    {
        return baseMapper.deleteById(id);
    }
}
